package com.ruoyi.app.service;

import com.ruoyi.app.domain.AppTeamApply;
import com.ruoyi.app.domain.vo.AppTeamApplyVo;
import com.ruoyi.app.domain.bo.AppTeamApplyBo;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.core.domain.PageQuery;

import java.util.Collection;
import java.util.List;

/**
 * APP拼团类型Service接口
 *
 * @author heike
 * @date 2023-08-16
 */
public interface IAppTeamApplyService {

    /**
     * 查询APP拼团类型
     */
    AppTeamApplyVo queryById(Long id);

    /**
     * 查询APP拼团类型列表
     */
    TableDataInfo<AppTeamApplyVo> queryPageList(AppTeamApplyBo bo, PageQuery pageQuery);

    /**
     * 查询APP拼团类型列表
     */
    List<AppTeamApplyVo> queryList(AppTeamApplyBo bo);

    /**
     * 查询APP拼团类型列表
     */
    List<AppTeamApplyVo> queryList(Long userID,String status);

    AppTeamApplyVo queryByTeamAndUser(Long id, Long userID, String status);

    /**
     * 新增APP拼团类型
     */
    Boolean insertByBo(AppTeamApplyBo bo);

    /**
     * 修改APP拼团类型
     */
    Boolean updateByBo(AppTeamApplyBo bo);

    /**
     * 校验并批量删除APP拼团类型信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);

    Boolean delect(Long id);

    Boolean insert(AppTeamApplyBo team);

    Boolean updateByVo(AppTeamApplyVo appTeamApplyVo);

    AppTeamApplyVo queryUser(Long id, Long userID,String type);

    AppTeamApplyVo queryUser(Long id, Long userID);

    Boolean join(Long id, Long userID);
}
